diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 22:22:33 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 22:22:33 +0200 |
| commit | 1cef356be95a67f95d40f5b0b131f98d11f13c13 (patch) | |
| tree | a0d93976998b0395e373a7a9f0127cc35e77a6f2 /src/routes/projects/[id]/+page.svelte | |
| parent | b11a40840cfe0e9978f78cacd68d68764eabec58 (diff) | |
Extract Button primitive, migrate all call sites
Variants primary/accent/ghost/done with scoped styles.
Disabled handling unified; block/size/style props cover
login stretch, done-lg, save-check positioning.
Delete btn-* globals and dead page overrides.
Diffstat (limited to 'src/routes/projects/[id]/+page.svelte')
| -rw-r--r-- | src/routes/projects/[id]/+page.svelte | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/routes/projects/[id]/+page.svelte b/src/routes/projects/[id]/+page.svelte index 8a3561b..2efe05b 100644 --- a/src/routes/projects/[id]/+page.svelte +++ b/src/routes/projects/[id]/+page.svelte @@ -4,6 +4,7 @@ import HealthChart from '$lib/components/HealthChart.svelte'; import ScoreBadge from '$lib/components/ScoreBadge.svelte'; import StatusBadge from '$lib/components/StatusBadge.svelte'; + import Button from '$lib/components/Button.svelte'; import { formatFrequency, parseIntervalToDays, @@ -82,14 +83,13 @@ autocomplete="off" aria-label="Intervalle (ex: 1d, 2w, 3m)" /> - <button - class="btn-accent" - type="submit" + <Button + variant="accent" disabled={!name.trim() || frequencyDays === null} - aria-label="Ajouter" + ariaLabel="Ajouter" > + - </button> + </Button> </form> {#if frequency !== '' && frequencyDays === null} @@ -105,12 +105,12 @@ <li class="item-row item-row--card routine-row"> <form method="POST" action="?/complete" use:enhance> <input type="hidden" name="id" value={routine.id} /> - <button type="submit" class="btn-ghost"> + <Button variant="ghost"> <StatusBadge status={routine.status} overdueDays={routine.overdueDays} /> - </button> + </Button> </form> <div class="routine-info"> <a |
